.agent-layout {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  gap: 1rem;
  margin-top: 1rem;
}

.agent-layout h3 {
  margin: 0;
}

.agent-graph-features {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 0.75rem;
  flex-shrink: 0;

  border: 1px solid var(--md-default-fg-color--lightest);
  border-radius: 0.5rem;
  background-color: var(--md-default-bg-color);
}

.agent-graph-features label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: var(--md-typeset-color);
  cursor: pointer;
}

.agent-graph-features input[type="checkbox"] {
  accent-color: var(--md-accent-fg-color);
  transform: scale(1.2);
}

.agent-graph-container {
  flex: 1 1;
  padding: 0.75rem;
  gap: 0.5rem;
  display: flex;
  flex-direction: column;

  overflow: auto;
  height: auto;
  box-sizing: border-box;

  border: 1px solid var(--md-default-fg-color--lightest);
  border-radius: 0.5rem;
  background-color: var(--md-default-bg-color);
}

.agent-graph-container img {
  display: block;
  margin: 0 auto;
}

@media screen and (max-width: 45em) {
  .agent-layout {
    flex-direction: column;
    align-items: flex-start;
  }

  .agent-graph-features {
    max-width: 300px;
  }

  .agent-graph-container {
    flex-basis: 70%;
    max-width: 70%;
  }
}
